<template>
	<view class="pay_">
		<view class="pay-card">
			<view class="card-title">充值金额</view>
			<view class="card-money">
				<view class="card-icon">￥</view> <input class="card-ipt" type="text" value="" v-model="payMoney" />
			</view>
		</view>
		<view class="pay-method">
			<view class="method-item">
				<view class="pay">
					<image class="weixin" src="../../static/img/wx.png" mode=""></image>
					<view class="text-t">
						<view class="pay-m">微信支付</view>
						<text class="pay-t">（推荐使用微信支付）</text>
					</view>
				</view>
				<view class="option">
					<radio style="transform:scale(0.7)" :checked="isChecked" color="#d81e06" @tap="radioChecked" />
				</view>
			</view>
		</view>
		<view class="btn-p">
			<view class="pay-btn-p">
				充值
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				payMoney: '100', 
				isChecked: false
			};
		},
		methods: {
			radioChecked() {
				this.isChecked = !this.isChecked
			}
		}
	}
</script>

<style lang="scss">
	page {
		// background-color: #ccc;
	}
	.pay_ {
		padding-top: 15rpx;
	}
	.pay-card {
		margin: 0 18rpx 15rpx 18rpx;
		padding: 52rpx 0 51rpx 34rpx;
		box-sizing: border-box;
		width: 714rpx;
		height: 190rpx;
		background-color: #ffffff;
		border-radius: 15rpx;

		.card-title {
			font-size: 24rpx;
			letter-spacing: 2rpx;
			color: #363636;
			margin-bottom: 16rpx;
		}

		.card-money {
			display: flex;
			align-items: flex-end;
			font-size: 30rpx;
			color: #d81e06;

			.card-icon {
				margin-bottom: 4rpx;
				margin-right: 10rpx;
			}

			.card-ipt {
				font-size: 40rpx;
				font-weight: bold;
				color: #d81e06;
			}
		}
	}

	.method-item {
		width: 100%;
		height: 91rpx;
		background-color: #ffffff;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 43rpx;
		box-sizing: border-box;

		.pay {
			display: flex;
			align-items: center;

			.weixin {
				width: 36rpx;
				height: 31rpx;
				margin-right: 20rpx;
			}

			.text-t {
				display: flex;
				align-items: flex-end;

				.pay-m {
					font-size: 30rpx;
					letter-spacing: 3rpx;
					color: #333333;
				}

				.pay-t {
					font-size: 22rpx;
					letter-spacing: 2rpx;
					color: #989898;
				}
			}

		}
	}

	.btn-p {
		display: flex;
		align-items: center;
		justify-content: center;

		.pay-btn-p {
			display: flex;
			align-items: center;
			justify-content: center;
			margin-top: 450rpx;
			width: 713rpx;
			height: 100rpx;
			background-color: #c60122;
			border-radius: 50rpx;
			font-size: 36rpx;
			letter-spacing: 4rpx;
			color: #ffffff;
		}
	}
</style>
